<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >

<%@ include file="../base/taglibs.jsp" %>
<%@ page session="true"%>

<html>
	<%@ include file="../base/head.jsp" %>

	<body>
		<div id="wrap">
			<%@ include file="../snipped/header.jsp"%>
			
			<div id="content">
				
				<c:if test="${addBand}">
				
				<h2>Přidat kapelu</h2>
				<form:form id="form" method="post" modelAttribute="band" action="bandSubmit">
				
					<%@ include file="../snipped/msgErr.jsp" %>
									
						<fieldset>
							<legend><b>Povinné položky</b></legend>
							<table>
								<tr>
									<td><form:label path="name">Název:</form:label></td>
									<td><form:input path="name" maxlength="50" size="50" /><small>max. 50 znaků</small></td>
								</tr>
							</table>
						</fieldset>
						<br /><br />
						<fieldset>		
							<legend><b>Nepovinné položky</b></legend>			
							<table>
								<tr>		
									<td><form:label path="email">Email:</form:label></td>
									<td><form:input path="email" maxlength="50" size="50" /></td>
								</tr>
								<tr>
									<td><form:label path="creation">Založení:</form:label></td>
									<td><form:input path="creation" /><small>vzor: RRRR-MM-DD</small></td>
								</tr>
								<tr>
									<td><form:label path="breakup">Rozpad:</form:label></td>
									<td><form:input path="breakup" /><small>vzor: RRRR-MM-DD</small></td>
								</tr>
								<tr>
									<td><form:label path="description">Popis:</form:label></td>
									<td><form:textarea path="description" cols="85" rows="3" /><br /><small>max. 200 znaků</small></td>
								</tr>
							</table>
						</fieldset>
						
						<p><button type="submit">Přidat</button></p>
						
					</form:form>
					
				</c:if>
				
				<c:if test="${addMember}">
				
				<h2>Přidat člena</h2>
				<form:form id="form" method="post" modelAttribute="member"  action="memberSubmit">
					
					<%@ include file="../snipped/msgErr.jsp" %>
					
						<fieldset>
							<table>
								<tr>
									<td><form:label path="nick">Nick:</form:label></td>
									<td><form:input path="nick" maxlength="50" size="50" /><small>max. 50 znaků</small></td>
								</tr>
								<tr>
									<td><form:label path="name">Jméno:</form:label></td>
									<td><form:input path="name" maxlength="50" size="50" /></td>
								</tr>
								<tr>
									<td><form:label path="surname">Příjmení:</form:label></td>
									<td><form:input path="surname" maxlength="50" size="50" /></td>
								</tr>
								<tr>					
									<td><form:label path="email">Email:</form:label></td>
									<td><form:input path="email" maxlength="50" size="50" /></td>
								</tr>
								<tr>
									<td><form:label path="phone">Telefon:</form:label></td>
									<td><form:input path="phone" maxlength="20" size="20" /></td>
								</tr>
								<tr>
									<td nowrap="nowrap"><form:label path="dateOfBirth">Datum narození:</form:label></td>
									<td><form:input path="dateOfBirth" /><small>vzor: RRRR-MM-DD</small></td>
								</tr>
								<tr>
									<td><form:label path="job">Funkce v kapele:</form:label></td>
									<td><form:textarea path="job" cols="85" rows="3" /><br /><small>max. 200 znaků</small></td>
								</tr>
							</table>
						</fieldset>
						
						<p><button type="submit">Přidat</button></p>
						
					</form:form>
					
				</c:if>
				
				<c:if test="${addSong}">
				
				<h2>Přidat píseň</h2>
				<form:form id="form" method="post" modelAttribute="song"  action="songSubmit">
					
					<%@ include file="../snipped/msgErr.jsp" %>
					
						<fieldset>
							<table>
								<tr>
									<td nowrap="nowrap"><form:label path="nameCs">Název CS:</form:label></td>
									<td><form:input path="nameCs" maxlength="100" size="100" /></td>
								</tr>
								<tr>
									<td nowrap="nowrap"><form:label path="nameOriginal">Název orig.:</form:label></td>
									<td><form:input path="nameOriginal" maxlength="100" size="100" /></td>
								</tr>
								<tr>					
									<td><form:label path="arrange">Arranž:</form:label></td>
									<td><form:input path="arrange" maxlength="50" size="50" /></td>
								</tr>
								<tr>
									<td><form:label path="author">Autor:</form:label></td>
									<td><form:input path="author" maxlength="50" size="50" /></td>
								</tr>
								<tr>
									<td><form:label path="description">Popis:</form:label></td>
									<td><form:textarea path="description" cols="85" rows="3" /><br /><small>max. 100 znaků</small></td>
								</tr>
							</table>
						</fieldset>
						
						<p><button type="submit">Přidat</button></p>
						
					</form:form>
					
				</c:if>
				
				<c:if test="${addConcert}">
				
					<h2>Přidat koncert</h2>
					<form:form id="form" method="post" modelAttribute="concert" action="concertSubmit">
				
					<%@ include file="../snipped/msgErr.jsp" %>
									
						<fieldset>
							<table>
								<tr>		
									<td><form:label path="place">Místo:</form:label></td>
									<td><form:input path="place" maxlength="100" size="100" /></td>
								</tr>
								<tr>
									<td><form:label path="dateTime">Datum:</form:label></td>
									<td><form:input path="dateTime" /><small>vzor: RRRR-MM-DD</small></td>
								</tr>
								<tr>
									<td><form:label path="description">Popis:</form:label></td>
									<td><form:textarea path="description" cols="85" rows="3" /><br /><small>max. 100 znaků</small></td>
								</tr>
							</table>
						</fieldset>
						
						<p><button type="submit">Přidat</button></p>
						
					</form:form>
					
				</c:if>
				
			</div>
			
			<br />
			<%@ include file="../snipped/footer.jsp"%>
		</div>
	</body>
	
</html>